package com.zhentao.dating.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * @TableName ap_user_social
 */
@ApiModel(description = "")
@TableName(value ="ap_user_social")
@Data
public class ApUserSocial implements Serializable {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键", position = 1)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关注者
     */
    @ApiModelProperty(value = "关注者", position = 2)
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 被关注者
     */
    @ApiModelProperty(value = "被关注者", position = 3)
    @TableField(value = "followed_id")
    private Integer followedId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 4)
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}